package com.springboot.base.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 表
 * </p>
 *
 * @author beike
 * @since 2021-11-25
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("post")
@ApiModel(value = "Post对象", description = "文章表")
public class Post extends BaseEntity {

    @ApiModelProperty("标题")
    @TableField("subject")
    private String subject;

    @ApiModelProperty("内容")
    @TableField("content")
    private String content;

    @ApiModelProperty("作者")
    @TableField("author")
    private String author;
}
